//
//  DetailView.m
//  HappyBaby
//
//  Created by lanou on 15/11/27.
//  Copyright © 2015年 华哥. All rights reserved.
//

#import "DetailView.h"

@implementation DetailView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 30, 30)];
        //label.backgroundColor = [UIColor redColor];
        label.text = @"难度";
        label.textColor = [UIColor blackColor];
        label.textAlignment = NSTextAlignmentCenter;
        label.font = [UIFont boldSystemFontOfSize:15];
        [self addSubview:label];
        
        CGFloat x = 40;
        for (int k = 4; k<9; k++)
        {
            
            NSString *imageString = [NSString stringWithFormat:@"%d.png",k];
            UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(x, 2.5, 22.5, 22.5)];
            //imageView.backgroundColor = [UIColor redColor];
            imageView.image = [UIImage imageNamed:imageString];
            [self addSubview:imageView];
            x += 22.5;
            
        }

    }
    
    
    return self;
    
    
}


@end
